package com.example.administrator.fangbook.read.bean;


import com.example.administrator.fangbook.dataLibrary.book.ShelfItemBook;

import org.geometerplus.zlibrary.text.view.ZLTextFixedPosition;

import java.io.Serializable;

/**
 * 书籍开始阅读数据
 */
public class ChineseallBookReadStartData implements Serializable {

    private static final long serialVersionUID = -6806764630182802653L;
    /**
     * 开始阅读章节id
     */
    private String ChapterId;
    /**
     * 开始阅读章节name
     */
    private String mChapterName;
    /**
     * 来源类型
     */
    public SOURCE_TYPE sourceType;
    /**
     * 书籍信息
     */
    private ShelfItemBook shelfBook;

    /**
     * 具体章节位置
     */
    private ZLTextFixedPosition startPosition = null;


    public String getBookId() {
        return shelfBook.getBookId();
    }

    public String getBookName() {
        return shelfBook.getName();
    }

    public void setChapterId(String chapterId) {
        ChapterId = chapterId;
    }

    public String getChapterId() {
        return ChapterId;
    }

    public void setSourceType(SOURCE_TYPE sourceType) {
        this.sourceType = sourceType;
    }

    public SOURCE_TYPE getSourceType() {
        return sourceType;
    }


    public void setShelfBook(ShelfItemBook shelfBook) {
        this.shelfBook = shelfBook;
    }

    public ShelfItemBook getShelfBook() {
        return shelfBook;
    }

    public ZLTextFixedPosition getStartPosition() {
        return startPosition;
    }

    public void setStartPosition(ZLTextFixedPosition startPosition) {
        this.startPosition = startPosition;
    }

    public String getChapterName() {
        return mChapterName;
    }

    public void setChapterName(String name) {
        mChapterName = name;
    }
}
